package gamagora.game.world.maps.game
{
	import gamagora.game.entity.*;
	import gamagora.game.world.maps.OSMap;

	public class OSMap30 extends OSMap
	{
		public function OSMap30()
		{
			super();

			var ground:OSGround = new OSGround(0, 1040, 60, 40, 0, false);
			ground.setNoErosionDown([3, 4, 5]);
			ground.setNoErosionLeft([0, 3]);
			ground.setNoErosionRight([2, 5]);
			ground.erode();
			add(ground);

			ground = new OSGround(60, 1020, 80, 60, 0, false);
			ground.setNoErosionDown([8, 9, 10, 11]);
			ground.setNoErosionLeft([4, 8]);
			ground.setNoErosionRight([11]);
			ground.erode();
			add(ground);

			ground = new OSGround(100, 580, 20, 160, 0, false);
			ground.erode();
			add(ground);
			
			addBackground(new OSPillar(100, 730, 20, 500));
			addBackground(new OSPillar(420, 890, 20, 500));
			addBackground(new OSPillar(560, 890, 20, 500));
			addBackground(new OSPillar(860, 570, 20, 500));
			
			add(new OSBridge(120, 620, 9, 5, false));

			ground = new OSGround(140, 1060, 620, 20, 0, false);
			ground.setNoErosionDown([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(400, 740, 200, 160, 0, false);
			ground.setNoErosionUp([4]);
			ground.setNoErosionDown([71, 78]);
			ground.erode();
			add(ground);

			ground = new OSGround(480, 580, 20, 160, 0, false);
			ground.setNoErosionDown([7]);
			ground.erode();
			add(ground);

			add(new OSBridge(500, 620, 9, 5, false));

			add(new OSMovingBox(500, 980));

			ground = new OSGround(760, 900, 200, 180, 0, false);
			ground.setNoErosionDown([80, 81, 82, 83, 84, 85, 86, 87, 88, 89]);
			ground.setNoErosionLeft([80]);
			ground.setNoErosionRight([9, 19, 29, 39, 49, 59, 69, 79, 89]);
			ground.erode();
			add(ground);

			ground = new OSGround(860, 580, 20, 160, 0, false);
			ground.erode();
			add(ground);
			
		}
	}
}
